package com.jxd.ordering.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * @ClassName Meal
 * @Description TODO
 * @Author Ankailong
 * @Date 2022/9/25
 * @Version 1.0
 */
public class Meal extends Entity {
    @TableId(value = "mealno",type = IdType.AUTO)
    private Integer mealno;//餐品编号
    private String mname;//餐品名称
    private Double price;//单价(管理员可以维护餐品信息)
    private String picture;//餐品图片

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public Integer getMealno() {
        return mealno;
    }

    public void setMealno(Integer mealno) {
        this.mealno = mealno;
    }

    public String getMname() {
        return mname;
    }

    public void setMname(String mname) {
        this.mname = mname;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Meal() {
    }

    public Meal(Integer mealno, String mname, Double price, String picture) {
        this.mealno = mealno;
        this.mname = mname;
        this.price = price;
        this.picture = picture;
    }

    @Override
    public String toString() {
        return "Meal{" +
                "mealno=" + mealno +
                ", mname='" + mname + '\'' +
                ", price=" + price + '\'' +
                ", picture=" + picture +
                '}';
    }
}
